/**
 * @Author MrsGuo
 * version 1.0
 * @Date 2023-08-03 14:52
 */
package com.cl.erp_2301.Service.impl;

import com.cl.erp_2301.Service.EmpService;
import com.cl.erp_2301.dto.EmpDTO;
import com.cl.erp_2301.entity.Department;
import com.cl.erp_2301.entity.Emp;
import com.cl.erp_2301.mapper.EmpMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Resource
    private EmpMapper empMapper;
    @Override
    public Emp getEmpById(Integer id) {
        return empMapper.getEmpById(id);
    }
    @Override
    public List<EmpDTO> findAll() {
        return empMapper.findAll();
    }

    @Override
    public void updateById(EmpDTO empDTO) {
        empMapper.updateById(empDTO);
    }


    @Override
    public List<EmpDTO> listByPage() {
        return empMapper.listByPage();
    }

    @Override
    public List<Department> department() {
        return empMapper.department();
    }

    @Override
    public void add(EmpDTO empDTO) {
        empMapper.add(empDTO);
    }

    @Override
    public void delete() {

    }
}
